/**
 * 
 */
package edu.rice.myxo.utils;

import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import quicktime.*;

/**
 * @author frogy
 * 
 */
public class ReadQTMovie extends Frame {

	static public int WIDTH = 640;

	static public int HEIGHT = 480;

	public ReadQTMovie(String s) {
		super(s);
		setResizable(false);
		setBounds(0, 0, WIDTH, HEIGHT);
		addWindowListener(new WindowAdapter(){
			public void windowClosing(WindowEvent we){
				QTSession.close();
				dispose();
			}
			public void windowClosed(WindowEvent we){
				System.exit(0);
			}
		});
	}

	public static void main(String[] args) {
		try {
			QTSession.open();

			ReadQTMovie appWindow = new ReadQTMovie("haha");
			appWindow.show();
			appWindow.toFront();
		} catch (Exception e) {
			QTSession.close();
			e.printStackTrace();
		}
	}
}
